package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.RoleStation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenm
 * @create 2019-11-22 15:47
 */
public interface RoleStationMapper {

  /*
  批量插入
  */
  int insertListRoleStation(@Param("roleStations") List<RoleStation> roleStations);

  List<RoleStation> selectByRoleId(@Param("roleId") Integer roleId);

  List<Integer> selectStationIdByRoleId(@Param("roleId") Integer roleId);

  int deleteByStationId(@Param("delStationIdList") List<Integer> delStationIdList,@Param("roleId") Integer roleId);

  List<Integer> selectStationIdByUserId(@Param("userId") Integer userId);
}
